package com.neusoft.demo3;

public class Point {
    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void movePoint(int dx,int dy) {
        this.x += dx;
        this.y += dy;
    }

    public static void main(String[] args) {
        Point p1 = new Point();
        p1.movePoint(6,7);
        System.out.println(p1.getX()+"----"+p1.getY());
        Point p2 = new Point();
        p2.movePoint(6,7);

    }
}
